<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/10
 * Time: 16:54
 */
namespace app\admin\validate;

use think\Validate;

class Smstm extends Validate{
    protected $rule = [
        'client_id'             => 'require',
        'signature'             => 'require|max:20',
        'client_template_code'  => 'require|max:20',
        'provider_id'           => 'require',
        'provider_template_code'=> 'require|max:100',
    ];
    protected $message  =   [
        'client_id.require'             => '客户ID不能为空',
        'signature.require'             => '签名不能为空',
        'client_template_code.require'  => '客户模板编号不能为空',
        'provider_id.require'           => '供应商ID不能为空',
        'provider_template_code.require'=> '供应商模板编号不能为空',
        'signature.max'                 => '签名不能超过20个字符',
        'client_template_code.max'      => '客户模板编号不能超过20个字符',
        'provider_template_code.max'    => '供应商模板编号不能超过100个字符',
    ];
}